package com.hl.sfzy.service.content;

import java.time.LocalDateTime;
import java.util.List;

import com.hl.sfzy.entity.content.Knowlege;

/**
 * @description: 知识服务接口
 * @version 0.1.0
 * @company : www.hailiang.tech
 * @authour : fireflyshen
 * @implNote {@link com.hl.sfzy.service.content.impl.KnowledgeServiceImpl}
 */
public interface KnowledgeService {
   
//    查询心理知识
    List<Knowlege> getKnowledges();
    //分页查询心理知识
    List<Knowlege> getKnowledgesPage(Integer pageNo, Integer pageSize);
//根据id查询知识
    Knowlege getKnowlegeById(Long id);
//添加知识
    int addKnowlege(Knowlege knowlege);
    //根据标题
    List<Knowlege> getKnowlegeByName(String knowlegeName);
//删除知识
    int removeKnowlege(Long id);
//修改知识
    int updateKnowlege(Knowlege knowlege);
//搜索知识
    List<Knowlege> searchKnowledges(String key,LocalDateTime starTime,LocalDateTime endTime);
}
